//
//  LZMainPhotosOperationTableViewCell.m
//  laziz_Merchant
//
//  Created by XMac on 17/3/14.
//  Copyright © 2017年 XBN. All rights reserved.
//

#import "LZMainPhotosOperationTableViewCell.h"
#import "LZAppendImageBar.h"

@interface LZMainPhotosOperationTableViewCell ()

@property (weak, nonatomic) IBOutlet LZAppendImageBar *appendImageBar;


@property (weak, nonatomic) IBOutlet UILabel *mainPhotoTitleLabel;

@end



@implementation LZMainPhotosOperationTableViewCell


- (void)awakeFromNib {
    [super awakeFromNib];
}

-(void)changeTitle:(NSString *)xTitle{
    self.mainPhotoTitleLabel.text = xTitle;
}


-(void)loadImages:(NSArray<NSDictionary *> *)images{
    [self.appendImageBar loadImages:images];
}


+(CGFloat)getCellHeight:(NSInteger)numberOfImageViews boundNumber:(NSInteger)boundNumber{
 
    return [LZAppendImageBar getHeight:numberOfImageViews boundNumber:boundNumber];
}



-(void)setAddPictureBlock:(void (^)())addPictureBlock{
    
    _addPictureBlock = addPictureBlock;
    
    [self.appendImageBar setAddPictureBlock:self.addPictureBlock];
}

-(void)setTapPictureBlock:(void (^)(NSInteger, UIImageView *))tapPictureBlock{
    _tapPictureBlock = tapPictureBlock;
    
    [self.appendImageBar setTapPictureBlock:self.tapPictureBlock];
}

-(void)setDeletePictureBlock:(void (^)(NSString *))deletePictureBlock{
    _deletePictureBlock = deletePictureBlock;
    
    [self.appendImageBar setDeletePictureBlock:self.deletePictureBlock];
}

@end
